﻿@using ECG.Utility
@model ECG.Common.ProductCategoryDto
@{
    ViewBag.Title = (string.IsNullOrEmpty(Model.MetaTitle) ? ViewBag.FullCateName : Model.MetaTitle) + ViewBag.strPage;
    ViewBag.Description = (string.IsNullOrEmpty(Model.MetaDescription) ? Model.Name : Model.MetaDescription) + ViewBag.strPage;
    ViewBag.keywords = (string.IsNullOrEmpty(Model.MetaKeyword) ? Model.Name : Model.MetaKeyword) + ViewBag.strPage;
    Layout = "~/Views/Shared/_LayoutHideCate.cshtml";
}
<!--Category-->
<div class="bb_cate_home">
    @Html.Action("DirectionCategory", "Category", new { categoryId = ViewBag.CategoryId })
    <div class="bb_cate_home_content">
        <div class="bb_cate_left">
            <div class="bb_cateListSub">
                @Html.Action("CategoryMenuLeft", "Category", new { categoryId = ViewBag.CategoryId })
            </div>
        </div>

        <div class="bb_cate_right">
            @Html.Action("ProductByCate", "Category", new { categoryName = StringUtil.RemoveSpecialCharactersVn(ViewBag.FullCateName), categoryId = ViewBag.CategoryId, page = ViewBag.Page })
        </div>
        <div class="clr"></div>
    </div>
    <div class="pp1-adv clearfix">
        @Html.Action("Adv1ByCategory", "CategoryL1", new { category = ViewBag.CategoryId, w = 980, o = 0 })
    </div>
    <div class="pp1-pbyCate">
        @Html.Action("GetParentCate", "CategoryL1", new { categoryId = ViewBag.CategoryId, depth = ViewBag.DepthCate })
    </div>
    @{
        if (!string.IsNullOrEmpty(ViewBag.CateContentFooter))
        {
        <div class="bb_p_m_catetxtFooter clearfix">
            <div class="cate-textfooter">
                <div class="textFooter-border">
                    <div style="padding: 10px;">@Html.Raw(ViewBag.CateContentFooter)</div>
                </div>
            </div>
            <div class="cate-advfooter clearfix">
                @Html.Action("Adv1ByCategory", "CategoryL1", new { category = ViewBag.CategoryId, w = 210, o = 1 })
                @*<img src="" width="210" height="336" alt="" />*@
            </div>
        </div>
        }
    }
    <div class="pp1-commentfb clearfix">
        <div class="social-left">
            <div class="fb-comments" data-href="@Request.Url.AbsoluteUri" data-colorscheme="light" data-numposts="6" data-width="760"></div>
        </div>
        <div class="social-right">
            <!-- Place this tag where you want the widget to render. 
            <div class="g-person" data-width="210" data-href="//plus.google.com/107287656763890500433" data-rel="author"></div>-->
        </div>
    </div>
</div>

<!--End Category-->
@section scripts
{
    @Scripts.Render("~/bundles/categoryProduct")
    <div id="fb-root"></div>
    <script>(function (d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1&appId=236490029757493";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
    <!-- Place this tag after the last widget tag. -->
    <script type="text/javascript">
        (function () {
            var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
            po.src = 'https://apis.google.com/js/plusone.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
        })();
    </script>
}
